import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'

// 导入 vant 的样式
import 'vant/lib/index.css'
// 数据持久化插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(pinia)

app.mount('#app')
